import {getData} from 'api/getData';
import {adUrl} from './config';
import rander from './fav-ad.art';
import './fav-ad.css'
const fav_ad_loading=document.querySelector('.fav-ad .loading');
const fav_ad=document.getElementById('fav-ad');
getData(adUrl).then((data)=>{
    // 在成功接收到响应数据后，加载出广告区域模块
    fav_ad_loading.classList.add('none');
    fav_ad.innerHTML=rander({item:data});
})